package com.biz.primus.commodity.vo.frontend;

import com.google.common.collect.Lists;
import org.apache.commons.collections.CollectionUtils;

import java.io.Serializable;
import java.util.List;

/**
 * 用户足迹商品RespVo
 *
 * @author david-liu
 * @date 2017年01月16日
 * @reviewer
 */
public class UserFootPrintProductsRespVo implements Serializable {
    private static final long serialVersionUID = -9124900861274649445L;

    private List<UserProductItemVo> products;

    public List<UserProductItemVo> getProducts() {
        if (CollectionUtils.isNotEmpty(this.products)) {
            return this.products;
        } else {
            return Lists.newArrayList();
        }
    }

    public void setProducts(List<UserProductItemVo> products) {
        this.products = products;
    }
}
